package com.bac.rentmap.ad.batch.proccess;

import java.io.IOException;

import com.bac.rentmap.ad.batch.Batchable;


/**
 * Used for batch ad processing.
 *
 * @author Andrew Osipenko
 */
public interface BatchProccessor extends Batchable{
    /**
    * Process ads. Implementations shall ensure that the same Ad
    * can't be processed twice with the same proccessor without
    * processing with other processor.
    *
    * @return actual number of processed ads.
    * @throws IOException
    */
    int proccess() throws IOException;
}